package com.nbsaas.boot.order.rest.convert;

import com.nbsaas.boot.order.data.entity.OrderLogistics;
import com.nbsaas.boot.order.api.domain.simple.OrderLogisticsSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 订单物流-列表对象转换器
*/

public class OrderLogisticsSimpleConvert implements Converter<OrderLogisticsSimple, OrderLogistics> {




@Override
public OrderLogisticsSimple convert(OrderLogistics source) {
    OrderLogisticsSimple result = new OrderLogisticsSimple();

                result.setOrderNo(source.getOrderNo());
                result.setDeliveryTime(source.getDeliveryTime());
                result.setOrderId(source.getOrderId());
                result.setLogisticsCompany(source.getLogisticsCompany());
                result.setLogisticsCompanyCode(source.getLogisticsCompanyCode());
                result.setShippingTime(source.getShippingTime());
                result.setId(source.getId());
                result.setTrackingNumber(source.getTrackingNumber());
                result.setLogisticsStatus(source.getLogisticsStatus());
                result.setLogisticsInfo(source.getLogisticsInfo());
                result.setAddDate(source.getAddDate());
                result.setLastDate(source.getLastDate());


    return result;
}

}